package cn.csust.net2.manager.shared.po;

import java.io.Serializable;
import java.sql.Timestamp;
import com.extjs.gxt.ui.client.data.BeanModelTag;
import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

/**
 * Research entity. @author MyEclipse Persistence Tools
 */

public class Research extends PO implements Serializable,BeanModelTag {

	

	/**
	 * 在research 中没有researchTitleSet（每个title还应关联answerSet）
	 * 是因为 gxt中set中再有set 不能序列化	 * 
	 * 所以在service 中进行了程序的正向关联 
	 * 在po层只有反向关联
	 */
	private static final long serialVersionUID = 1L;
	private Long researchId;
	private String topic;
	private Long pubUserId;
	private Timestamp startTime;
	private Timestamp endTime;
	private String remark;

	public Research() {
	}
	
	/** minimal constructor */
	public Research(Long researchId) {
		this.researchId = researchId;
	}


	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return null;
	}
	

	public Timestamp getEndTime() {
		return this.endTime;
	}
	public Long getPubUserId() {
		return this.pubUserId;
	}

	public String getRemark() {
		return this.remark;
	}


	public Long getResearchId() {
		return researchId;
	}


	public Timestamp getStartTime() {
		return this.startTime;
	}


	public String getTopic() {
		return topic;
	}


	@Override
	public XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		XmlInfo xmlInfo = new XmlInfo();
		xmlInfo.setTextResource(instance.research());
		return xmlInfo;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public void setPubUserId(Long pubUserId) {
		this.pubUserId = pubUserId;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setResearchId(Long researchId) {
		this.researchId = researchId;
	}


	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}
	public void setTopic(String topic) {
		this.topic = topic;
	}
	

}